/**
 * Created by Administrator on 2016/10/22.
 *
 * 装饰者：照片是否入册
 */
public class IsPhotoAlbum extends Format {

    private Photo photo;


    public IsPhotoAlbum(Photo photo) {
        this.photo = photo;
    }

    @Override
    public String getDescription() {
        return photo.getDescription() + "+IsPhotoAlbum(入册)";
    }

    @Override
    protected Double cost() {
        return 10.0 + photo.cost();
    }
}
